import 'package:flutter/material.dart';
import 'package:tender_flutter/constant/theme_colors.dart';
import 'package:tender_flutter/page/track/model/fuzzy_company_entity.dart';
import 'package:tender_flutter/utils/screen_adaper.dart';

class BusinessListCell extends StatelessWidget {
  const BusinessListCell({Key key, this.data, this.onTap}) : super(key: key);

  final FuzzyCompanyEntity data;
  final GestureTapCallback onTap;

  @override
  Widget build(BuildContext context) {
    return _initCell();
  }

  Widget _initCell() {
    return GestureDetector(
        onTap: onTap,
        child: Container(
          width: double.infinity,
          color: ThemeColors.colorWhite,
          padding: EdgeInsets.symmetric(
              horizontal: ScreenAdapter.width(30),
              vertical: ScreenAdapter.height(30)),
          child: Text(
            data.companyName ?? "-",
            style: TextStyle(
              color: ThemeColors.colorType1,
              fontSize: ScreenAdapter.sp(32),
            ),
          ),
        )
//      Stack(
//        children: <Widget>[
//          ,
//          Container(
//            alignment: Alignment.topRight,
//            child: Image.asset(RPath.imgPath + "icon_top.png"))
//        ],
//      ),
        );
  }
}
